package com.education.basic.service.impl;

import com.education.basic.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.education.basic.entity.Teacher;
import com.education.basic.service.TeacherService;

import java.util.List;

@Service("teacherService")
public class TeacherServiceImpl extends BaseServiceImpl<Teacher> implements TeacherService
{
    @Autowired
    private TeacherDao teacherDao;


    @Override
    public List<Teacher> queryTeachers() {
        return teacherDao.queryAll();
    }

    @Override
    public Teacher getTeacherByUsername(String username) {
        return teacherDao.getByUsername(username);
    }
}
